Imports Microsoft.VisualBasic
Imports System
Imports System.Collections.Generic
Imports System.Text

Namespace C4F.DevKit.Telephony

	''' <summary>
	''' This class is a custom exception class derived from Exception class. This will deal with exceptions thrown by TapiManager class.
	''' </summary>
	<Global.System.Serializable> _
	Public Class TapiManagerException
		Inherits Exception
		''' <summary>
		''' Initializes a new object of TapiManagerException class.
		''' </summary>
		Public Sub New()
		End Sub

		''' <summary>
		''' Initializes a new object of TapiManagerException class.
		''' </summary>
		''' <param name="message">The message that describes the error.</param>
		Public Sub New(ByVal message As String)
			MyBase.New(message)
		End Sub

		''' <summary>
		''' Initializes a new object of TapiManagerException class.
		''' </summary>
		''' <param name="message">The message that describes the error.</param>
		''' <param name="inner">The exception that is the cause of the current exception.</param>
		Public Sub New(ByVal message As String, ByVal inner As Exception)
			MyBase.New(message, inner)
		End Sub

		''' <summary>
		''' Initializes a new object of TapiManagerException class.
		''' </summary>
		''' <param name="info">The System.Runtime.Serialization.SerializationInfo that holds the serialized
		''' object data about the exception being thrown.</param>
		''' <param name="context">The System.Runtime.Serialization.StreamingContext that contains contextual
		''' information about the source or destination.</param>
		Protected Sub New(ByVal info As System.Runtime.Serialization.SerializationInfo, ByVal context As System.Runtime.Serialization.StreamingContext)
			MyBase.New(info, context)
		End Sub

	End Class

End Namespace
